php-src/ext/pdo_odbc
Calvin Buckley 6635948b7a
Check for iODBC and unixODBC with pkg-config in PDO_ODBC (#14963)
* Check for iODBC and unixODBC with pkg-config in PDO_ODBC

PDO_ODBC required that these backends had their path specified manually,
which was clumsy and contrary to how procedural ODBC checked it. This
adds a pkg-config based path to check for these backends that ignores
the 'dir' part of the flag, so i.e. --with-pdo-odbc=unixODBC should pick
it up from the correct location.

Generic and the special ibm-db2 usecase should be unaffected. The header
situation is unfortunately ugly, and has a workaround; this should also
be cleaned up.

* Move check for valid headers to after

* Use existing CFLAGS for PDO_ODBC header check

...instead of a separate funny variable. It does mean we have to save
and restore the value of CPPFLAGS, as AC_CHECK_HEADERS and friends rely
on that variable instead of CFLAGS.

Co-authored-by: Peter Kokot <peterkokot@gmail.com>

* Move PDO_ODBC_TYPE to AC_DEFINE, simplify CFLAGS handling

The variable PDO_ODBC_INCLUDE becomes redundant, as is the CFLAGS
override for PHP_NEW_EXTENSION if we call PHP_EVAL_INCLINE in the
generic case.

Co-authored-by: Peter Kokot <peterkokot@gmail.com>

* Use same variable names so evals can be combined

* Fix identation

* Suggested shell syntax cleanups

---------

Co-authored-by: Peter Kokot <peterkokot@gmail.com>
2024-07-16 00:40:02 +02:00
..
tests Amend PDO driver-specific class names (#14069) 2024-05-30 20:15:42 +02:00
config.m4 Check for iODBC and unixODBC with pkg-config in PDO_ODBC (#14963) 2024-07-16 00:40:02 +02:00
config.w32 Sync leading and final newlines in source code files 2018-10-14 12:56:38 +02:00
CREDITS Change some permissions from 755 to 644 2018-08-28 23:26:49 +02:00
odbc_driver.c Preferably include from build dir (#13516) 2024-06-26 00:26:43 +02:00
odbc_stmt.c Preferably include from build dir (#13516) 2024-06-26 00:26:43 +02:00
pdo_odbc.c Preferably include from build dir (#13516) 2024-06-26 00:26:43 +02:00
pdo_odbc.stub.php Amend PDO driver-specific class names (#14069) 2024-05-30 20:15:42 +02:00
pdo_odbc_arginfo.h Amend PDO driver-specific class names (#14069) 2024-05-30 20:15:42 +02:00
php_pdo_odbc.h Update http->https in license (#6945) 2021-05-06 12:16:35 +02:00
php_pdo_odbc_int.h Merge branch 'PHP-8.3' 2024-06-04 12:51:06 -03:00