File: config0.m4

package info (click to toggle)
php8.4 8.4.11-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 208,108 kB
  • sloc: ansic: 1,060,628; php: 35,345; sh: 11,866; cpp: 7,201; pascal: 4,913; javascript: 3,091; asm: 2,810; yacc: 2,411; makefile: 689; xml: 446; python: 301; awk: 148
file content (38 lines) | stat: -rw-r--r-- 1,338 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
PHP_ARG_WITH([sqlite3],
  [whether to enable the SQLite3 extension],
  [AS_HELP_STRING([--without-sqlite3],
    [Do not include SQLite3 support.])],
  [yes])

if test $PHP_SQLITE3 != "no"; then
  PHP_SETUP_SQLITE([SQLITE3_SHARED_LIBADD])
  AC_DEFINE([HAVE_SQLITE3], [1],
    [Define to 1 if the PHP extension 'sqlite3' is available.])

  PHP_CHECK_LIBRARY([sqlite3], [sqlite3_errstr],
    [AC_DEFINE([HAVE_SQLITE3_ERRSTR], [1],
      [Define to 1 if SQLite library has the 'sqlite3_errstr' function.])],
    [],
    [$SQLITE3_SHARED_LIBADD])

  PHP_CHECK_LIBRARY([sqlite3], [sqlite3_expanded_sql],
    [AC_DEFINE([HAVE_SQLITE3_EXPANDED_SQL], [1],
      [Define to 1 if SQLite library has the 'sqlite3_expanded_sql' function.])],
    [],
    [$SQLITE3_SHARED_LIBADD])

  PHP_CHECK_LIBRARY([sqlite3], [sqlite3_load_extension],
    [],
    [AC_DEFINE([SQLITE_OMIT_LOAD_EXTENSION], [1],
      [Define to 1 if SQLite library was compiled with the
      SQLITE_OMIT_LOAD_EXTENSION and does not have the extension support with
      the 'sqlite3_load_extension' function. For usage in the sqlite3 PHP
      extension. See https://www.sqlite.org/compile.html.])],
    [$SQLITE3_SHARED_LIBADD])

  PHP_NEW_EXTENSION([sqlite3],
    [sqlite3.c],
    [$ext_shared],,
    [-DZEND_ENABLE_STATIC_TSRMLS_CACHE=1])
  PHP_SUBST([SQLITE3_SHARED_LIBADD])
fi