File: config.m4

package info (click to toggle)
php-stomp 2.0.2%2B1.0.9-5
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 568 kB
  • sloc: ansic: 3,350; xml: 820; php: 119; makefile: 1
file content (28 lines) | stat: -rw-r--r-- 810 bytes parent folder | download | duplicates (6)
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
dnl $Id$
dnl config.m4 for extension stomp

PHP_ARG_ENABLE(stomp, whether to enable stomp support,
[  --enable-stomp           Enable stomp support])

PHP_ARG_WITH(openssl-dir,OpenSSL dir for stomp,
[  --with-openssl-dir[=DIR]  stomp: openssl install prefix], no, no)

if test "$PHP_STOMP" != "no"; then
  PHP_NEW_EXTENSION(stomp, stomp.c php_stomp.c, $ext_shared)

  test -z "$PHP_OPENSSL" && PHP_OPENSSL=no

  if test "$PHP_OPENSSL" != "no" || test "$PHP_OPENSSL_DIR" != "no"; then
    PHP_SETUP_OPENSSL(STOMP_SHARED_LIBADD,
            [
            AC_DEFINE(HAVE_STOMP_SSL,1,[ ])
            ], [
            AC_MSG_ERROR([OpenSSL libraries not found. 

                Check the path given to --with-openssl-dir and output in config.log)
            ])
    ])

    PHP_SUBST(STOMP_SHARED_LIBADD)
  fi
fi