xref: /PHP-5.3/Zend/configure.in (revision af316021)
1dnl $Id$
2dnl Process this file with autoconf to produce a configure script.
3
4AC_INIT(zend.c)
5AM_INIT_AUTOMAKE(zend, 0.80A, nodefine)
6AM_CONFIG_HEADER(zend_config.h)
7AM_SANITY_CHECK
8AM_MAINTAINER_MODE
9AC_PROG_CC
10AM_PROG_CC_STDC
11ZEND_VERSION=$VERSION
12AC_ZEND_C_BIGENDIAN
13
14dnl We want this one before the checks, so the checks can modify CFLAGS.
15test -z "$CFLAGS" && auto_cflags=1
16
17AC_CHECK_SIZEOF(long, 8)
18AC_CHECK_SIZEOF(int, 4)
19
20sinclude(Zend.m4)
21
22LIBZEND_BASIC_CHECKS
23LIBZEND_LIBDL_CHECKS
24LIBZEND_DLSYM_CHECK
25
26AM_PROG_LIBTOOL
27if test "$enable_debug" != "yes"; then
28  AM_SET_LIBTOOL_VARIABLE([--silent])
29fi
30
31dnl
32dnl Check for /usr/pkg/{lib,include} which is where NetBSD puts binary
33dnl and source packages.  This should be harmless on other OSs.
34dnl
35if test -d /usr/pkg/include -a -d /usr/pkg/lib ; then
36       CFLAGS="$CFLAGS -I/usr/pkg/include"
37       LDFLAGS="$LDFLAGS -L/usr/pkg/lib"
38fi
39
40LIBZEND_ENABLE_DEBUG
41LIBZEND_OTHER_CHECKS
42
43ZEND_EXTRA_LIBS="$LIBS"
44LIBS=""
45AC_SUBST(ZEND_EXTRA_LIBS)
46AC_OUTPUT(Makefile)
47
48# Local Variables:
49# tab-width: 4
50# End:
51